<div class="tableToolbar">
	<div class="coll-md-9" id="addInput">
		<div class="coll-md-2">
			<input type="text" class='search' placeholder="项目名称/用户名" ng-model="ctrlScope.itemsearch.commonCond">
		</div>
		<!--<div class="coll-md-1">-->
			<!--<input type="text" class='search' placeholder="用户名" ng-model="ctrlScope.itemsearch.name">-->
		<!--</div>-->
		<!--<div class="coll-md-1 triangle">-->
			<!--<select class="form-control" ng-model="ctrlScope.itemsearch.collectStatus">-->
				<!--<option value="" disabled selected hidden>还款状态</option>-->
				<!--<option value="0">未还款</option>-->
				<!--<option value="1">已还款</option>-->
			<!--</select>-->
		<!--</div>-->
		<div class="coll-md-7 scalenone"  id="searchdate" datahide>
			<div class="coll-md-25" >
				<p class="input-group">
					<input type="text" class="search" placeholder="应收开始时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.collectStartTimex" is-open="popup1.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
			<div class="coll-md-25">
				<p class="input-group inline">
					<input type="text" class="search" placeholder="应收结束时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.collectEendTimex" is-open="popup2.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
			<div class="coll-md-25" >
				<p class="input-group">
					<input type="text" class="search" placeholder="添加开始时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.addStartTimex" is-open="popup3.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open3()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
			<div class="coll-md-25">
				<p class="input-group inline">
					<input type="text" class="search" placeholder="添加结束时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.addEndTimex" is-open="popup4.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open4()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
		</div>
		<div class="coll-md-1">
			<input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
			<input type="button" class="small-icon search2" value="搜索">
			<input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
			<input type="button" class="small-icon reset" value="重置">

			<div class="dropdown-menu-right">
				<input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
					   aria-haspopup="true" aria-expanded="false">
				<input type="button" class="small-icon more" value="更多">
				<ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
					<li><a href="javascript:;">日期搜索</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="coll-md-1">
		<button class="small-icon btn btn-default pos-right" id="itemExport"  ng-click="download()">
			<i class="fa fa-download"></i>
		</button>
	</div>
</div>
<table style="margin-bottom:20px;width: 45%">
	<tr>
		<td class="blue">
			<h6>总待收金额</h6>
			<h4 ng-model="show.collectAmount">{{show.collectAmount}}元</h4>
		</td>
		<td class="red">
			<h6>总待收本金</h6>
			<h4 ng-model="show.collectPrincipal">{{show.collectPrincipal}}元</h4>
		</td>
		<td class="blue">
			<h6 >总待收利息</h6>
			<h4 ng-model="show.collectInterest">{{show.collectInterest}}元</h4>
		</td>
	</tr>
</table>
<table ui-table="orderParams">
	<thead>
		<tr>
			<th>项目名称</th>
			<th>用户名</th>
			<th>真实姓名</th>
			<th>项目id</th>
			<th>当期期数</th>
			<th>总期数	</th>
			<th>应收总额</th>
			<th>应收本金</th>
			<th>应收利息</th>
			<th>应收时间</th>
			<th>已收总额</th>
			<th>已收本金</th>
			<th>已收利息</th>
			<th>已收时间</th>
			<th>添加时间</th>
		</tr>
	</thead>
	<tbody>
		<tr ng-repeat="item in orderParams.$rows">
			<td><span ng-if="item.itemName">{{item.itemName}}</span>
				<span ng-if="!item.itemName">体验金</span></td>
			<td>{{item.username}}</td>
			<td>{{item.realname}}</td>
			<td>{{item.itemId}}</td>
			<td>{{item.collectCurrentPeriod}}</td>
			<td>{{item.collectTotalPeriod}}</td>
			<td>{{item.collectAmount}} 元</td>
			<td>{{item.collectPrincipal}} 元</td>
			<td>{{item.collectInterest}} 元</td>
			<td>{{item.collectTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
			<td>{{item.actualCollectAmount}} 元</td>
			<td>{{item.actualCollectPrincipal}} 元</td>
			<td>{{item.actualCollectInterest}} 元</td>
			<td>{{item.actualCollectTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
			<td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
		</tr>
	</tbody>
</table>
